    <dependency>
        <groupId>${d.groupId}</groupId>
        <artifactId>${d.artifactId}</artifactId>
        <#if d.version??>
            <version>${d.version}</version>
        </#if>
        <#if d.optional??>
            <optional>${d.optional}</optional>
        </#if>
        <#if d.scope??>
            <scope>${d.scope}</scope>
        </#if>
        <#if d.exclusions?? && (d.exclusions?size > 0)>
            <exclusions>
                <#list d.exclusions as exclusion>
                    <exclusion>
                        <groupId>${exclusion.groupId}</groupId>
                        <artifactId>${exclusion.artifactId}</artifactId>
                    </exclusion>
                </#list>
            </exclusions>
        </#if>
    </dependency>
